#include <stdio.h>
#include "skip_readconf.h"



int main(void)
{
	char* f_key=NULL;
	sconf* sf = skipC_open("..//test.conf");
	if(!sf)	
	{
		printf("[error]: read conf is error!\n");
		return 0;
	}

	while( (f_key=skipC_next(sf, f_key))!= NULL )
	{
	//	char* f_value = skipC_readstr(sf);
	//	printf("key=%s value=%s\n", f_key, f_value);
		int f_value = skipC_readnum(sf);
		printf("key=%s value=%d\n", f_key, f_value);
	}

	skipC_close(sf);
	mem_print();
	return 0;
}
